Discuss Scratch

nijona
Scratcher
27 posts

Check the last letter of something.

I need a thing where a block can check the last letter of a word.

when green flag clicked
say [Check out my Projects!]
Click the Football! Click Calculator Raze (A Fast-Paced Maze Game).

My Profile

My main browser / operating system: Windows NT 10.0, Chrome 52.0.2743.116, Flash 22.0 (release 0)
Falconmist
Scratcher
100+ posts

Check the last letter of something.

If you want it to say the last letter of the word, use this:
say (letter (length of [*enter word here*]) of [*enter same word here*]) for (2) secs
Or this:
say (letter (length of [*enter word here*]) of [*enter word here*])
If you want to just know it, use this, then click on it:
(letter (length of [world]) of [world])
If you want to ask someone what it is, use this slightly longer one:
ask [what is the last letter of world?] and wait
if <(answer) = (letter (length of [world]) of [world])> then
Add what you want the reward to be here
end

I hope this was helpful to you!

Visit my blog!
Click here to become an actor or actress for the false destiny animated series!
Come work at my voice acting and SFX/Music supplying shop! You can also submit a request for me or one of the workers to complete! WARRIOR SOUND AND VOICE! (WSV)
davidvaz1
Scratcher
100+ posts

Check the last letter of something.

Falconmist wrote:

If you want it to say the last letter of the word, use this:
say (letter (length of [*enter word here*]) of [*enter same word here*]) for (2) secs
Or this:
say (letter (length of [*enter word here*]) of [*enter word here*])
If you want to just know it, use this, then click on it:
(letter (length of [world]) of [world])
If you want to ask someone what it is, use this slightly longer one:
ask [what is the last letter of world?] and wait
if <(answer) = (letter (length of [world]) of [world])> then
Add what you want the reward to be here
end

I hope this was helpful to you!


Thanks so much! I was searching everywhere for that!

Check out this project! https://scratch.mit.edu/projects/553144251/

when green flag clicked :: #FFBF00
forever :: #FFA500
NoQuat Anti-Kumquat <RUN :: operators> :: #0A00FF// This is my new anti-kumquat (like anti-virus), for protection against evil kumquats!
end


Powered by DjangoBB